<h1>New Article</h1>

<p>Create a new article!</p>

<% form_for :article, :url => articles_url do |form| %>
  <%= form.text_field :title %>
  <%= form.text_area  :body  %>
  <%= form.select :blog_id, Blog.find(:all, :conditions => ["user_id = ?", current_user]).collect {|b| [ b.title, b.id ] }, { :include_blank => false } %>

  <%= form.text_field :tag_list  %>
  
  <%= form.submit 'Post article' %>
<% end %>